﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess_Layer;
using DTO;
using System.ComponentModel;
using System.Data;
namespace Business_Layer
{
    public static class ChungLoaiBUS
    {
        public static DataTable getAll()
        {
            return ChungLoaiDAC.getALL().ToDataTable<ChungloaiSPDTO>();
        }
        public static int Insert(ChungLoaiSP cl)
        {
            try
            {
                ChungLoaiDAC.Insert(cl);
                return 1;
            }
            catch
            {
                return 0;
            }
        }
    }
}

